<%@page import="javax.imageio.ImageIO"%>
<%@page import="java.io.File"%>
<%@page import="java.awt.Graphics2D"%>
<%@page import="java.awt.image.BufferedImage"%>
<%@page import="javax.media.jai.JAI"%>
<%@page import="javax.media.jai.RenderedOp"%>
<%@page import="java.awt.image.renderable.ParameterBlock"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy"%>
<%@page import="com.oreilly.servlet.MultipartRequest"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<table align="center">
	<%
		String imageFolder = request.getRealPath("upload");
		File file = new java.io.File(imageFolder);
		String[] fileList = file.list();

		for (String f : fileList) {
			String path = imageFolder + "/" + f;
	%><tr>
		<td><img src="./upload/<%=f%>" width="250"></td>
	</tr>
	<tr>
		<td><%=f%></td>
	</tr>
	<%
		}
	%>
</table>